package com.qqtech.qquan.im.dao;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.im.model.*;

@Repository
public class ImGroupDaoImpl extends BaseDaoImpl<ImGroup> implements ImGroupDao {
	public static final Logger log = LoggerFactory.getLogger(ImGroupDaoImpl.class);

	@Override
	public ImGroupVo getByGroupId(Integer groupId) {
		return sqlSessionTemplate.selectOne(getSqlName("selectByGroupId"), groupId);
	}

	@Override
	public ImGroupVo getByImGroupId(String imGroupId) {
		return sqlSessionTemplate.selectOne(getSqlName("selectByImGroupId"), imGroupId);
	}
	
}
